package com.cysyz.mylib.utils.exception;

public class UtilRuntimeException extends RuntimeException{

	private ExceptionLevel exceptionLevel;
	protected String message;
	public UtilRuntimeException(String message, Throwable cause, ExceptionLevel exceptionLevel) {
		super(message, cause);
		this.message = message;
		this.exceptionLevel = exceptionLevel;
	}

	public UtilRuntimeException(String message) {
		this(message, null, ExceptionLevel.NORMAL);
	}

	public UtilRuntimeException(String message, ExceptionLevel exceptionLevel) {
		this(message, null, exceptionLevel);
	}

	@Override
	public String getLocalizedMessage() {
		return message;
	}

	public static enum ExceptionLevel {
		NORMAL, SERIOUS, SERIOUS_SERIOUS;
    }
}
